package only.my.railgunys.weapon;

import only.my.railgunys.bean.Character;
import only.my.railgunys.bean.Weapon;

public class WolfsGravestone extends Weapon {
    public boolean specialEffect;

    public boolean isSpecialEffect() {
        return specialEffect;
    }

    public void setSpecialEffect(boolean specialEffect) {
        this.specialEffect = specialEffect;
    }

    public WolfsGravestone(int refineLevel) {
        this.atk = 608.0;
        this.subStatValue = 49.6;
        this.refineLevel = refineLevel;
        this.name = "狼末";
        this.code = 14;
    }

    @Override
    public Character subStatEnhance(Character character) {
        character.addAtk(subStatValue);
        return character;
    }

    @Override
    public Character specialAbility(Character character) {
        double refine = 1 + (refineLevel - 1) * 0.25;
        character.addAtk(20*refine);
        if(specialEffect){
            character.addAtk(40*refine);
            character.addDescription(" 30% ");
        }
        return character;
    }
}
